<div class="nav">
    <a class="sel" href="{:U('index')}">管理员组列表</a>
    <a href="{:U('add')}">添加管理员组</a>
</div>
<div class="list">
    <table class="table_list">
        <thead><tr>
                <td width="50px">ID</td>
                <td>管理员组名称</td>
                <td width="80px">顺序编号</td>
                <td width="80px">是否启用</td>
                <td width="150px">操作</td>
            </tr>
        </thead>
        <tbody>
        <foreach name="list" item="list">
            <tr>
                <td>{$list.group_id}</td>
                <td style="text-align: left;">{$list.group_name}</td>
                <td class="edit_input" attr_t="order_id" attr_id="{$list.group_id}">{$list.order_id}</td>
                <td class="edit_toggle" attr_t="is_enable" attr_id="{$list.group_id}">{$list.is_enable}</td>
                <td><a class="btn_a" href="{:U('edit',Array('group_id'=>$list['group_id']))}">修改</a>&nbsp;
            <if condition="$list['group_id'] neq 2">
                    <a class="btn_a2" href="{:U('del',Array('group_id'=>$list['group_id']))}" onclick="return confirm('确定删除吗？这将影响属于该组的所有管理员')">删除</a>
            </if>    
            </td>
            </tr>
        </foreach>
        </tbody>
        <tfoot>
            <tr><td colspan="5"><div class="page">{$page}</div></td>
            </tr>
        </tfoot>
    </table>
</div>
